package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Quality_Type", description = "检验分类")
@TableName(value = "Quality_Type")
public class QualityType extends FBaseEntity implements Serializable {


    
    @NotBlank(message="[分类编码]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("分类编码")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "code")
    private String code;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("描述")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "name")
    private String name;
    
    @ApiModelProperty("")
    @TableField(value = "quaClass")
    private Long quaClass;
    
    @ApiModelProperty("免检批次")
    @TableField(value = "mJBatch")
    private Long mJBatch;
    
    @ApiModelProperty("条件批次")
    @TableField(value = "tJBatch")
    private Long tJBatch;
    
    @ApiModelProperty("全检批次")
    @TableField(value = "qJBatch")
    private Long qJBatch;
    
    @ApiModelProperty("加严批次")
    @TableField(value = "jYBatch")
    private Long jYBatch;
    
    @ApiModelProperty("状态")
    @TableField(value = "status")
    private Long status;






}

